package com.wpml.netty.rpc.client;

import io.netty.channel.socket.nio.NioSocketChannel;

/**
 * @Description 客户端连接池
 * @Date 2021-05-06
 * @Author wangpei
 **/
public class ClientPool {
    NioSocketChannel[] clients;
    Object[] lock;

    ClientPool(int size) {
        clients = new NioSocketChannel[size];
        lock = new Object[size];
        for (int i = 0; i < size; i++) {
            lock[i] = new Object();
        }
    }
}
